package HibernateFacet.second;

public class Device implements java.io.Serializable{
    private Integer id;
    private Integer userId;
    private String number;  //设备编号
    private String name;
    private Integer currentRating; //额定电流
    private Integer sumPower; //总功率
    private Integer condition; //状态 1合闸  2分闸
    private String cause;  //分闸原因
    private String  fault;  //故障
    private String pwd;

    public Device() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCurrentRating() {
        return currentRating;
    }

    public void setCurrentRating(Integer currentRating) {
        this.currentRating = currentRating;
    }

    public Integer getSumPower() {
        return sumPower;
    }

    public void setSumPower(Integer sumPower) {
        this.sumPower = sumPower;
    }

    public Integer getCondition() {
        return condition;
    }

    public void setCondition(Integer condition) {
        this.condition = condition;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getFault() {
        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", userId=" + userId +
                ", number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", currentRating=" + currentRating +
                ", sumPower=" + sumPower +
                ", condition=" + condition +
                ", cause='" + cause + '\'' +
                ", fault='" + fault + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
